<?php

class Obj_DBTable_SameObjects extends Zend_Db_Table_Abstract
{
    protected $_name = 'same_objects';
	protected $_primary = 'ID';

    public function getSameObjectsByObject($ObjectID) {
    	$select = $this->select()->from($this)->where('ObjectID = ?', (int) $ObjectID);
    	return $this->fetchAll($select)->toArray();
    }

    public function getAllSameObjects() {
    	$select = $this->select()->from($this);
    	return $this->fetchAll($select)->toArray();
    } 

    public function delete($where)
    {
        return $this->_db->delete($this->_name, $where);
    } 	
}